<template>
  <div>
    <chart :options="options" @click="click" />
  </div>
</template>

<script setup lang="ts">
const options = {
  xAxis: {
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  },
  yAxis: {},
  series: [
    {
      type: 'bar',
      data: [23, 24, 18, 25, 27, 28, 25]
    }
  ]
}

const click = (params: any) => {
  console.log(params, 'params')
}
</script>

<style scoped></style>
